﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace K3R.Email {
	public class EmailConfig :ConfigurationSection {
		[ConfigurationProperty("defaultUrl")]
		public string DefaultUrl {
			get {
				return (string)base["defaultUrl"];
			}
			set {
				base["defaultUrl"] = value;
			}
		}
	}

	public static class Settings {
		static Settings() { }
		private static EmailConfig _settings = ConfigurationManager.GetSection("k3r.email") as EmailConfig;

		public static string DefaultUrl {
			get {
				string defaultUrl = null;

				if (_settings != null)
					defaultUrl = _settings.DefaultUrl;

				return defaultUrl;
			}
		}
	}
}
